#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>

int main()
{
	FILE*fp;
	int i = 0;

	while(1)
	{
		i ++;
		fp = fopen("tmp", "r");
		if(fp == NULL)
		{
			printf("%dth file open failed\n", i);
			break;
		}
	}

	exit(0);
}
